home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11007 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: cs.mu.OZ.AU!lister!trb
  2. From: trb@lister.cs.mu.OZ.AU (Timothy Robin BARBOUR)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: g++ exception handling - optimiser bug ?
  5. Date: 12 Mar 1996 07:13:29 GMT
  6. Organization: Comp Sci, University of Melbourne
  7. Distribution: world
  8. Message-ID: <4i386q$7qd@mulga.cs.mu.OZ.AU>
  9. References: <4ht810$cp8@mulga.cs.mu.OZ.AU> <4i19m3$nfq@pheidippides.axion.bt.co.uk>
  10. NNTP-Posting-Host: lister.cs.mu.oz.au
  11.  
  12. dathomas@tymnet.bt.co.uk (David 'Alwyn' Thomas) writes:
  13.  
  14.  
  15. >In article <4ht810$cp8@mulga.cs.mu.OZ.AU>, trb@munta.cs.mu.OZ.AU (Timothy Robin BARBOUR) writes:
  16. >> I am using g++ 2.7.2 with ld 2.5.2.6 on a Linux 586-a.out box. When I turn on
  17. >> exception handling using the flag -fhandle-exceptions, I get link errors.
  18.  
  19. ><snip>
  20. >> ioserror.cpp(.text+0xf50): undefined reference to `L2657'
  21. >> ioserror.cpp(.text+0xf54): undefined reference to `L2658'
  22.  
  23. ><snip>
  24.  
  25. >> + lots more...
  26.  
  27. >I get this problem if I turn the optimiser on (-O), but not otherwise. Are you
  28. >using the optimiser?
  29.  
  30. Yes. I was using: -m486 -g -O -fhandle-exceptions. Removing the -O does stop 
  31. the link errors - thanks for the information. Presumably this is an optimiser bug, but if so it is pretty bad - a lot of people must be using exceptions.
  32.  
  33. I am writing some code for a server that will need to throw exceptions, and
  34. will eventually need -O3.
  35.  
  36. Does anyone have further information on this problem
  37. e.g. whether it is a known g++ bug and whether has been or is being fixed ?
  38.  
  39.  
  40.